home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Networking / PGPuam / sources / PassphraseCache.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  1.1 KB  |  41 lines  |  [TEXT/CWIE]

  1. //    PassphraseCache.h -  Passphrase Cache Interface Object  
  2. // 
  3. // Apple Macintosh Developer Technical Support
  4. // Written by:  Vinnie Moscaritolo
  5. //
  6. //  Copyright (work in progress)  Apple Computer, Inc All rights reserved.
  7. //
  8. // You may incorporate this sample code into your applications without
  9. // restriction, though the sample code has been provided "AS IS" and the
  10. // responsibility for its operation is 100% yours.  However, what you are
  11. // not permitted to do is to redistribute the source as "DSC Sample Code"
  12. // after having made changes. If you're going to re-distribute the source,
  13. // we require that you make it clear in the source that the code was
  14. // descended from Apple Sample Code, but that you've made changes.
  15. // 
  16.  
  17. #pragma once
  18.   
  19. #define PGP_MACINTOSH 1
  20. #include "pgpkeys.h"
  21.  
  22.  
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26.  
  27.     void      FlushPassphraseCache();
  28.  
  29.     void      SetPassphraseCacheTimeLimit( SInt16 mins);
  30.     
  31.     void     EnablePassphraseCaching( Boolean );
  32.  
  33.     void      RememberPassphrase (PGPKeyRef  keyRef, const char* passphrase);        
  34.  
  35.     Boolean  GetPassphrase      (PGPContextRef, PGPKeyRef, char** passphrase);        
  36.  
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40.  
  41.